<div id="content">
  <div class="content_inner">
    <div id="main_categories">
      <h2>Score of <span style="color:#9F0000"><?php echo $user->getFullName(); ?></span></h2>
      <caption>Answered for <?php echo $answerdCount; ?> Courses <?php if ($remainigCourse > 0): ?> and <?php echo $remainigCourse.(($remainigCourse == 1)?' is':' are'); ?> remaining.<?php endif; ?></caption>
      <br />&nbsp;
      <table width="100%" cellpadding="0" cellspacing="0" border="0" id="table1" class="tablesorter">
        <thead>
          <tr>
            <th title="Sort by Name" class="tooltip">Course</th>
            <th title="Sort by Status">Marks</th>
            <th title="Sort by Status">Status</th>
          </tr>
        </thead>
        <tbody>
          <?php $color = array('100'=> '#008000', '0' => '#800000'); ?>
          <?php $i = 0; ?>
          <?php foreach ($scores as $score) : ?>
            <tr id="<?php echo ($i%2 == 1)?'row2':'row1'; ?>">
              <td><?php echo $score['COURSE']['title']; ?></td>
              <td><?php echo $score['score']; ?></td>
              <td style="color: <?php echo isset($color[$score['score']]) ? $color[$score['score']] : $color[0]; ?>"><?php echo ($score['score'] == 100)?'PASS':'FAIL'; ?></td>
            </tr>
          <?php $i++; ?>
          <?php endforeach; ?>
        </tbody>
      </table>
    </div>
  </div>
  <div class="buttons-add">
    <a href="<?php echo url_for('@user-list'); ?>"><button type="button">Back</button></a>
  </div>
</div>